home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
led
/
ledvb20
/
ledcontr.frm
< prev
next >
Wrap
Text File
|
1995-06-06
|
20KB
|
674 lines
VERSION 2.00
Begin Form ledcontrol
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "LED Custom Control"
ClientHeight = 5310
ClientLeft = 4080
ClientTop = 3675
ClientWidth = 8910
Height = 5655
Left = 4050
LinkTopic = "Form1"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 354
ScaleMode = 3 'Pixel
ScaleWidth = 594
Top = 3360
Width = 8970
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "BevelOuter"
Height = 1125
Index = 2
Left = 6750
TabIndex = 45
Top = 3390
Width = 1605
Begin OptionButton Option7
BackColor = &H00C0C0C0&
Caption = "None"
ForeColor = &H00FF0000&
Height = 225
Index = 0
Left = 210
TabIndex = 48
Top = 300
Width = 1185
End
Begin OptionButton Option7
BackColor = &H00C0C0C0&
Caption = "Raised"
ForeColor = &H00FF0000&
Height = 225
Index = 1
Left = 210
TabIndex = 47
Top = 540
Width = 1185
End
Begin OptionButton Option7
BackColor = &H00C0C0C0&
Caption = "Inset"
ForeColor = &H00FF0000&
Height = 225
Index = 2
Left = 210
TabIndex = 46
Top = 780
Value = -1 'True
Width = 1065
End
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "BevelInner"
Height = 1125
Index = 1
Left = 6750
TabIndex = 41
Top = 2250
Width = 1605
Begin OptionButton Option6
BackColor = &H00C0C0C0&
Caption = "Inset"
ForeColor = &H00FF0000&
Height = 225
Index = 2
Left = 210
TabIndex = 44
Top = 780
Width = 1065
End
Begin OptionButton Option6
BackColor = &H00C0C0C0&
Caption = "Raised"
ForeColor = &H00FF0000&
Height = 225
Index = 1
Left = 210
TabIndex = 43
Top = 540
Width = 1185
End
Begin OptionButton Option6
BackColor = &H00C0C0C0&
Caption = "None"
ForeColor = &H00FF0000&
Height = 225
Index = 0
Left = 210
TabIndex = 42
Top = 300
Value = -1 'True
Width = 1185
End
End
Begin HScrollBar HScroll1
Height = 255
Index = 7
Left = 3075
Max = 10
TabIndex = 38
Top = 3480
Value = 1
Width = 1335
End
Begin HScrollBar HScroll1
Height = 255
Index = 6
Left = 3075
Max = 10
TabIndex = 35
Top = 3210
Value = 1
Width = 1335
End
Begin HScrollBar HScroll1
Height = 255
Index = 5
Left = 3090
Max = 32
Min = 1
TabIndex = 32
Top = 2850
Value = 1
Width = 1335
End
Begin HScrollBar HScroll1
Height = 255
Index = 4
Left = 3090
Max = 30
TabIndex = 29
Top = 2580
Width = 1335
End
Begin HScrollBar HScroll1
Height = 255
Index = 3
Left = 3090
Max = 30
TabIndex = 26
Top = 2310
Width = 1335
End
Begin HScrollBar HScroll1
Height = 255
Index = 2
Left = 3090
Max = 30
TabIndex = 23
Top = 2040
Width = 1335
End
Begin HScrollBar HScroll1
Height = 255
Index = 1
Left = 3090
Max = 30
TabIndex = 20
Top = 1770
Width = 1335
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "LEDStyle"
Height = 1125
Index = 0
Left = 5070
TabIndex = 6
Top = 3390
Width = 1605
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Rectangle"
ForeColor = &H00FF0000&
Height = 225
Index = 0
Left = 210
TabIndex = 9
Top = 300
Width = 1185
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Circular"
ForeColor = &H00FF0000&
Height = 225
Index = 1
Left = 210
TabIndex = 8
Top = 540
Width = 1185
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Bitmap"
ForeColor = &H00FF0000&
Height = 225
Index = 2
Left = 210
TabIndex = 7
Top = 780
Value = -1 'True
Width = 1065
End
End
Begin HScrollBar HScroll1
Height = 255
Index = 0
Left = 3090
Max = 30
TabIndex = 16
Top = 1500
Width = 1335
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Orientation"
Height = 825
Index = 1
Left = 5070
TabIndex = 12
Top = 1410
Width = 1605
Begin OptionButton Option4
BackColor = &H00C0C0C0&
Caption = "Vertical"
ForeColor = &H00FF0000&
Height = 195
Index = 1
Left = 240
TabIndex = 14
Top = 510
Width = 1125
End
Begin OptionButton Option4
BackColor = &H00C0C0C0&
Caption = "Horizontal"
ForeColor = &H00FF0000&
Height = 195
Index = 0
Left = 240
TabIndex = 13
Top = 270
Value = -1 'True
Width = 1305
End
End
Begin CheckBox Check2
BackColor = &H00C0C0C0&
Caption = "AutoSize"
Height = 315
Left = 3060
TabIndex = 10
Top = 4230
Value = 1 'Checked
Width = 1365
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "MouseControl"
Height = 315
Left = 3060
TabIndex = 11
Top = 3960
Value = 1 'Checked
Width = 1545
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Mode"
Height = 825
Index = 0
Left = 6750
TabIndex = 3
Top = 1410
Width = 1605
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Value"
ForeColor = &H00FF0000&
Height = 195
Index = 0
Left = 240
TabIndex = 5
Top = 270
Value = -1 'True
Width = 1065
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Bitwise"
ForeColor = &H00FF0000&
Height = 195
Index = 1
Left = 240
TabIndex = 4
Top = 510
Width = 1125
End
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "Direction"
ForeColor = &H00000000&
Height = 825
Left = 5070
TabIndex = 0
Top = 2250
Width = 1605
Begin OptionButton Option3
BackColor = &H00C0C0C0&
Caption = "Forward"
ForeColor = &H00FF0000&
Height = 255
Index = 0
Left = 210
TabIndex = 2
Top = 240
Value = -1 'True
Width = 1245
End
Begin OptionButton Option3
BackColor = &H00C0C0C0&
Caption = "Backward"
ForeColor = &H00FF0000&
Height = 255
Index = 1
Left = 210
TabIndex = 1
Top = 480
Width = 1245
End
End
Begin LED LED1
AutoSize = -1 'True
BackColor = &H00C0C0C0&
BevelInner = 0 ' 0 - None
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderHorizontal= 2
BorderVertical = 2
BorderWidth = 0
DecayRate = 0
Direction = 0 ' 0 - Forward
Height = 510
LEDColor = LEDCONTR.FRX:0000
LEDHeight = 26
LEDIndex = 0
LEDSep = 0
LEDStyle = 2 ' 2 - Bitmap
LEDWidth = 23
Left = 390
MaxDecay = 0 'False
Mode = 0 ' 0 - Value
MouseControl = -1 'True
NumLEDs = 15
OffPictureGreen = LEDCONTR.FRX:00C8
OffPictureRed = LEDCONTR.FRX:0292
OffPictureYellow= LEDCONTR.FRX:045C
OnPictureGreen = LEDCONTR.FRX:0626
OnPictureRed = LEDCONTR.FRX:07F0
OnPictureYellow = LEDCONTR.FRX:09BA
Orientation = 0 ' 0 - Horizontal
TabIndex = 15
Top = 360
Value = 20
Width = 5295
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BorderWidth"
Height = 195
Index = 7
Left = 1935
TabIndex = 40
Top = 3510
Width = 1065
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 195
Index = 7
Left = 4485
TabIndex = 39
Top = 3510
Width = 645
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BevelWidth"
Height = 195
Index = 6
Left = 2010
TabIndex = 37
Top = 3240
Width = 990
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 195
Index = 6
Left = 4485
TabIndex = 36
Top = 3240
Width = 645
End
Begin Label Label3
BackStyle = 0 'Transparent
Caption = "Click on the LEDs to change the control's value."
Height = 255
Left = 660
TabIndex = 34
Top = 90
Width = 4575
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 195
Index = 5
Left = 4500
TabIndex = 18
Top = 2880
Width = 645
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "NumLEDs"
Height = 195
Index = 5
Left = 2175
TabIndex = 33
Top = 2880
Width = 840
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 195
Index = 4
Left = 4500
TabIndex = 31
Top = 2610
Width = 645
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "LEDWidth"
Height = 195
Index = 4
Left = 2145
TabIndex = 30
Top = 2610
Width = 870
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 195
Index = 3
Left = 4500
TabIndex = 28
Top = 2340
Width = 645
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "LEDSep"
Height = 195
Index = 3
Left = 2310
TabIndex = 27
Top = 2340
Width = 705
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 195
Index = 2
Left = 4500
TabIndex = 25
Top = 2070
Width = 645
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "LEDHeight"
Height = 195
Index = 2
Left = 2085
TabIndex = 24
Top = 2070
Width = 930
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 195
Index = 1
Left = 4500
TabIndex = 22
Top = 1800
Width = 645
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BorderVertical"
Height = 195
Index = 1
Left = 1800
TabIndex = 21
Top = 1800
Width = 1215
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 195
Index = 0
Left = 4500
TabIndex = 19
Top = 1530
Width = 645
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "BorderHorizontal"
Height = 195
Index = 0
Left = 1590
TabIndex = 17
Top = 1530
Width = 1425
End
End
Sub Check1_Click ()
led1.MouseControl = -check1
End Sub
Sub Check2_Click ()
led1.AutoSize = -check2
End Sub
Sub Form_Load ()
hscroll1(0) = led1.BorderHorizontal
hscroll1(1) = led1.BorderVertical
hscroll1(2) = led1.LEDHeight
hscroll1(3) = led1.LEDSep
hscroll1(4) = led1.LEDWidth
hscroll1(5) = led1.NumLEDs
hscroll1(6) = led1.BevelWidth
hscroll1(7) = led1.BorderWidth
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
led1.BorderHorizontal = hscroll1(index)
Case 1
led1.BorderVertical = hscroll1(index)
Case 2
led1.LEDHeight = hscroll1(index)
Case 3
led1.LEDSep = hscroll1(index)
Case 4
led1.LEDWidth = hscroll1(index)
Case 5
led1.NumLEDs = hscroll1(index)
Case 6
led1.BevelWidth = hscroll1(index)
Case 7
led1.BorderWidth = hscroll1(index)
End Select
label2(index) = hscroll1(index)
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
led1.BorderHorizontal = hscroll1(index)
Case 1
led1.BorderVertical = hscroll1(index)
Case 2
led1.LEDHeight = hscroll1(index)
Case 3
led1.LEDSep = hscroll1(index)
Case 4
led1.LEDWidth = hscroll1(index)
Case 5
led1.NumLEDs = hscroll1(index)
Case 6
led1.BevelWidth = hscroll1(index)
Case 7
led1.BorderWidth = hscroll1(index)
End Select
label2(index) = hscroll1(index)
End Sub
Sub Option1_Click (index As Integer)
led1.LEDStyle = index
End Sub
Sub Option2_Click (index As Integer)
led1.Mode = index
End Sub
Sub Option3_Click (index As Integer)
led1.Direction = index
End Sub
Sub Option4_Click (index As Integer)
led1.Orientation = index
End Sub
Sub Option6_Click (index As Integer)
led1.BevelInner = index
End Sub
Sub Option7_Click (index As Integer)
led1.BevelOuter = index
End Sub